babl.git
12 years agoUse QueryPerformanceCounter for babl_ticks on Win32
Daniel Sabo [Sat, 6 Apr 2013 03:11:03 +0000 (20:11 -0700)]
Use QueryPerformanceCounter for babl_ticks on Win32

12 years agoAdd SSE2 conversions
Daniel Sabo [Sat, 30 Mar 2013 15:48:52 +0000 (08:48 -0700)]
Add SSE2 conversions

This patch includes two conversions for RaGaBaA -> RGBA. Depending
on the CPU either spin or shuffle is significantly faster. Unless
I can find a consistently fast version I'm going to let them fight
it out in the babl startup benchmarks.

12 years agoDisable gegl-lies conversions
Daniel Sabo [Sat, 6 Apr 2013 03:47:56 +0000 (20:47 -0700)]
Disable gegl-lies conversions

They lazy table generation these conversions use causes
babl to overestimate their cost while also overestimating
their accuracy.

I used "#if 0" rather than disabling the library because I
want to ensure the conversion gets removed without people
needing to do rm lib/babl-0.1/*

12 years agoRemove duplicate conversions in gggl and gggl-lies
Daniel Sabo [Sat, 6 Apr 2013 03:45:00 +0000 (20:45 -0700)]
Remove duplicate conversions in gggl and gggl-lies

12 years agoRemove gggl rgbA <-> rgba
Daniel Sabo [Sat, 30 Mar 2013 03:14:40 +0000 (20:14 -0700)]
Remove gggl rgbA <-> rgba

12 years agoMinimal float -> u8, u16 conversions
Daniel Sabo [Wed, 30 Jan 2013 02:41:44 +0000 (18:41 -0800)]
Minimal float -> u8, u16 conversions

Add some simplistic but "accurate" float -> u8 and float -> u16
conversions to make more non-reference paths usable.

The main difference from the existing conversions is that these
clamp out of range values and make the path error checker happy.

I also had to fudge the float-to-8bit slightly because the prior
values cause it to check for the rounding on an exact 0.5 value.

13 years agoAdd --disable-docs option to configure
Daniel Sabo [Thu, 7 Feb 2013 19:24:12 +0000 (11:24 -0800)]
Add --disable-docs option to configure

13 years agoAdd introspection function for BablFishPath
Daniel Sabo [Tue, 29 Jan 2013 10:13:24 +0000 (02:13 -0800)]
Add introspection function for BablFishPath

13 years agoInstall babl-introspect.h
Daniel Sabo [Tue, 29 Jan 2013 00:26:56 +0000 (16:26 -0800)]
Install babl-introspect.h

13 years agoFix babl-stats page encoding for Firefox
Daniel Sabo [Sun, 9 Dec 2012 20:48:32 +0000 (12:48 -0800)]
Fix babl-stats page encoding for Firefox

Add <meta Content-Type> to babl-stats.html so Firefox renders
it with the correct encoding.

13 years agobabl: always allocate enough memory
Massimo Valentini [Wed, 5 Dec 2012 18:22:36 +0000 (19:22 +0100)]
babl: always allocate enough memory

13 years agobabl: don't crash processing same format models
Massimo Valentini [Wed, 5 Dec 2012 17:52:16 +0000 (18:52 +0100)]
babl: don't crash processing same format models

with different component number

13 years agobabl: fix conversion path cost evaluation
Massimo Valentini [Wed, 5 Dec 2012 17:52:03 +0000 (18:52 +0100)]
babl: fix conversion path cost evaluation

and silence compiler warnings

13 years agoUpdate tests/ gitignore.
Jehan [Mon, 26 Nov 2012 11:51:17 +0000 (20:51 +0900)]
Update tests/ gitignore.

13 years agoRevert "tests: adjust float to 8bit regression test for new sRGB precision"
Massimo Valentini [Fri, 24 Aug 2012 08:06:01 +0000 (10:06 +0200)]
Revert "tests: adjust float to 8bit regression test for new sRGB precision"

This reverts commit 2675787f341ce259f9abec3e326b5efece45ecbf.

the literal 0.3 assigned to a float is approximated to a number
slightly greater than 0.3 (3/10) ->

lrint ((0.3 + epsilon) * 255) == lrint (76.5 + 255 * epsilon) == 77

13 years agoAUTHORS: markup and email fix.
Jehan [Tue, 20 Nov 2012 16:10:22 +0000 (01:10 +0900)]
AUTHORS: markup and email fix.

13 years agoBug 688217 - cleaning out an unneeded include of stdint.h.
Jehan [Tue, 20 Nov 2012 16:06:06 +0000 (01:06 +0900)]
Bug 688217 - cleaning out an unneeded include of stdint.h.

13 years agoAUTHORS: markup fixup
Øyvind Kolås [Mon, 19 Nov 2012 20:39:43 +0000 (21:39 +0100)]
AUTHORS: markup fixup

13 years agoupdate AUTHORS file
Øyvind Kolås [Mon, 19 Nov 2012 01:32:44 +0000 (02:32 +0100)]
update AUTHORS file

13 years agoBug 688217 - relies on actual DLL path for locating lib directory on Windows.
Jehan [Wed, 14 Nov 2012 04:26:06 +0000 (13:26 +0900)]
Bug 688217 - relies on actual DLL path for locating lib directory on Windows.

13 years agoget rid of process_chunks
Øyvind Kolås [Wed, 14 Nov 2012 01:02:00 +0000 (02:02 +0100)]
get rid of process_chunks

13 years agoMove chuking of stack allocated buffer to innermost loop
Øyvind Kolås [Wed, 14 Nov 2012 00:36:50 +0000 (01:36 +0100)]
Move chuking of stack allocated buffer to innermost loop

Moves the logic to the only place where it is needed, speeding up the other,
more likely and hopeful code path by not needing to do the conditionals at
all.

13 years agoMichael Henning <drawoc@darkrefraction.com>
Øyvind Kolås [Tue, 13 Nov 2012 22:06:21 +0000 (23:06 +0100)]
Michael Henning <drawoc@darkrefraction.com>

Clean up babl_process_chunks a bit.

13 years agolower max stack alloced buffer size to 14000px (for win32)
Øyvind Kolås [Sat, 27 Oct 2012 23:08:56 +0000 (01:08 +0200)]
lower max stack alloced buffer size to 14000px (for win32)

13 years agoreduce size of max tempbuffer, and do chunking in fewer cases
Øyvind Kolås [Sat, 27 Oct 2012 20:17:34 +0000 (22:17 +0200)]
reduce size of max tempbuffer, and do chunking in fewer cases

Chunking is now only done for multi-step fish paths and reference conversions.

13 years agoLimit the size of temporary buffers used by babl.
Øyvind Kolås [Sat, 27 Oct 2012 17:47:52 +0000 (19:47 +0200)]
Limit the size of temporary buffers used by babl.

This might fix the issue reported in Bug 686557, though more logic can be
applied, only do this if it is a multi-step conversion and temporary buffers
would actually be needed.

13 years agoHSV and test: minor style cleaning before merge
Michael Muré [Tue, 28 Aug 2012 07:02:31 +0000 (16:02 +0900)]
HSV and test: minor style cleaning before merge

13 years agoHSV test
Maxime Nicco [Fri, 27 Jul 2012 10:57:52 +0000 (12:57 +0200)]
HSV test

Factorize code

13 years agoHSV add test
Maxime Nicco [Thu, 26 Jul 2012 16:05:51 +0000 (18:05 +0200)]
HSV add test

13 years agoHSV fix Makefile
Maxime Nicco [Thu, 26 Jul 2012 16:02:38 +0000 (18:02 +0200)]
HSV fix Makefile

13 years agoHSV Cleanup
Maxime Nicco [Wed, 25 Jul 2012 10:04:55 +0000 (12:04 +0200)]
HSV Cleanup

13 years agoRename Naive-HSV in HSV
Maxime Nicco [Wed, 25 Jul 2012 10:01:39 +0000 (12:01 +0200)]
Rename Naive-HSV in HSV

13 years agoAdding HSV Conversion
Maxime Nicco [Wed, 25 Jul 2012 09:32:31 +0000 (11:32 +0200)]
Adding HSV Conversion

implement conversion between rvba and hsvba float

13 years agobabl: further increase the number of pixels verified
Øyvind Kolås [Sat, 25 Aug 2012 14:22:20 +0000 (16:22 +0200)]
babl: further increase the number of pixels verified

13 years agobabl: increase number of pixels in tests ~8 times
Øyvind Kolås [Sat, 25 Aug 2012 14:11:23 +0000 (16:11 +0200)]
babl: increase number of pixels in tests ~8 times

This makes 32bit systems also trip up on many more possible !8bpc
discrpeancies.

13 years agotests: adjust float to 8bit regression test for new sRGB precision
Øyvind Kolås [Thu, 23 Aug 2012 08:30:32 +0000 (10:30 +0200)]
tests: adjust float to 8bit regression test for new sRGB precision

13 years agoAdjust constants used for sRGB gamma
Øyvind Kolås [Thu, 23 Aug 2012 08:26:29 +0000 (10:26 +0200)]
Adjust constants used for sRGB gamma

Spotted by Elle Stone and clarified by Graeme Gill, now updated to Current IEC
specification values.

13 years agobuild: Fix distcheck by disting tests/introspection.py
Jon Nordby [Wed, 1 Aug 2012 10:49:04 +0000 (12:49 +0200)]
build: Fix distcheck by disting tests/introspection.py

13 years agobuild: Use 'rsvg-convert' instead of 'rsvg'
Jon Nordby [Wed, 1 Aug 2012 10:47:00 +0000 (12:47 +0200)]
build: Use 'rsvg-convert' instead of 'rsvg'

rsvg was made obsolete a long time ago by rsvg-convert, and
was removed in librsvg 2.35.2. rsvg-convert is available
from at least librsvg 2.26.2 (Debian Squeeze).

13 years agoextensions: #define _POSIX_C_SOURCE for lrint
Øyvind Kolås [Tue, 31 Jul 2012 18:53:01 +0000 (20:53 +0200)]
extensions: #define _POSIX_C_SOURCE for lrint

13 years agoextensions: cairo - remove unused lut_linear table
Øyvind Kolås [Tue, 31 Jul 2012 18:45:36 +0000 (20:45 +0200)]
extensions: cairo - remove unused lut_linear table

13 years agointrospection: Add GI/GTKDoc style symbol references to comments
Jon Nordby [Tue, 31 Jul 2012 16:19:02 +0000 (18:19 +0200)]
introspection: Add GI/GTKDoc style symbol references to comments

13 years agointrospection: Pass --warn-all to g-ir-scanner
Jon Nordby [Mon, 30 Jul 2012 14:35:17 +0000 (16:35 +0200)]
introspection: Pass --warn-all to g-ir-scanner

13 years agoconfigure.ac: Fix typo in check for GI >= 1.33.5
Jon Nordby [Mon, 30 Jul 2012 14:34:18 +0000 (16:34 +0200)]
configure.ac: Fix typo in check for GI >= 1.33.5

13 years agotests: Add test setup for introspection bindings in Python
Jon Nordby [Sun, 29 Jul 2012 13:39:27 +0000 (15:39 +0200)]
tests: Add test setup for introspection bindings in Python

This is essentially all we can test for now, as the
methods using the Babl type are show up with 'introspectable="1"'.

13 years agoextensions: make fastpath for R'G'B'A u8 to cairo-ARGB32 have 0 error
Øyvind Kolås [Mon, 30 Jul 2012 20:48:57 +0000 (22:48 +0200)]
extensions: make fastpath for R'G'B'A u8 to cairo-ARGB32 have 0 error

13 years agoextensions: add fastpath for R'G'B'A u8 to cairo-ARGB32 conversion
Alexia Death [Fri, 27 Jul 2012 18:49:35 +0000 (21:49 +0300)]
extensions: add fastpath for R'G'B'A u8 to cairo-ARGB32 conversion

13 years agointrospection: Babl.BablObject -> Babl.Object
Jon Nordby [Sun, 29 Jul 2012 13:06:03 +0000 (15:06 +0200)]
introspection: Babl.BablObject -> Babl.Object

13 years agoBug 673422 - Babl C type not accessible to introspection bindings
Jon Nordby [Fri, 27 Jul 2012 20:00:46 +0000 (22:00 +0200)]
Bug 673422 - Babl C type not accessible to introspection bindings

https://bugzilla.gnome.org/show_bug.cgi?id=673422
Annotate Babl C type to be Babl.Object in GIR using the
"rename to" annotation in GI 1.33.5+. For earlier versions,
use a static .gir file to achieve the same.

13 years agoRevert "Add simple test app to test pow-24 accuracy"
Øyvind Kolås [Fri, 27 Jul 2012 19:13:12 +0000 (21:13 +0200)]
Revert "Add simple test app to test pow-24 accuracy"

commit dc824c0ac704b35130aff44e544e8666e21b5bc5 which was pushed by accident.

13 years agoRevert "extensions/gggl{,-lies}.c: do not register the same conversion twice or +"
Øyvind Kolås [Fri, 27 Jul 2012 19:09:59 +0000 (21:09 +0200)]
Revert "extensions/gggl{,-lies}.c: do not register the same conversion twice or +"

This reverts commit bc66f5ae8a98896f360549cb87cbbfae77d176df

The conversions in gggl and gggl-lies are not the same, even though the lines
registering them seem identical; their effect is different since the same
names refer to different pixel formats. Further restructuring these
conversions and getting rid of the gggl legacy naming of them might be
beneficial..

13 years agoAdd simple test app to test pow-24 accuracy
Alexander Larsson [Mon, 18 Jun 2012 13:17:51 +0000 (15:17 +0200)]
Add simple test app to test pow-24 accuracy

https://bugzilla.gnome.org/show_bug.cgi?id=678318

13 years agoextensions/gggl{,-lies}.c: do not register the same conversion twice or +
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl{,-lies}.c: do not register the same conversion twice or +

grep "o (" extensions/gggl.c | sort | uniq -d
grep "o (" extensions/gggl-lies.c | sort | uniq -d

13 years agoextensions/gggl{,-lies}.c: round toward nearest in integer unpremultiplication
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl{,-lies}.c: round toward nearest in integer unpremultiplication

from (docs/BablFishPath.html):
../extensions/.libs/gggl-lies.so 0: RaGaBaA u8 to RGBA u8
    error: 0.001425 cost: 81 processings: 1 pixels: 128
../extensions/.libs/gggl.so 0: R'aG'aB'aA u8 to R'G'B'A u8
    error: 0.001971 cost: 71 processings: 1 pixels: 128
../extensions/.libs/gggl.so 0: R'aG'aB'aA u8 to R'G'B' u8
    error: 0.001971 cost: 71 processings: 1 pixels: 128

to:
../extensions/.libs/gggl-lies.so 0: RaGaBaA u8 to RGBA u8
    error: 0.000031 cost: 81 processings: 1 pixels: 128
../extensions/.libs/gggl.so 0: R'aG'aB'aA u8 to R'G'B'A u8
    error: 0.000042 cost: 61 processings: 1 pixels: 128
../extensions/.libs/gggl.so 0: R'aG'aB'aA u8 to R'G'B' u8
    error: 0.000042 cost: 61 processings: 1 pixels: 128

13 years agoextensions/gggl{,-lies}.c: fix a Fixme: (>>8 vs /255)
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl{,-lies}.c: fix a Fixme: (>>8 vs /255)

division per 0x100-1 is implemented using 1 term of (1 + x)^-1
MacLaurin expansion

(1+x)^-1 == 1 + (-1) x

a * (1 - 1/256)^-1 * (256^-1) == (a + a / 256) / 256

with integer division rounded toward the nearest.

13 years agoextensions/gggl{,-lies}.c: use 'lrint' where it is not yet used
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl{,-lies}.c: use 'lrint' where it is not yet used

and instead of 'rint'.
'lrint' returning a long does not require a conversion double->int
that in theory requires changing the rounding direction from
toward the nearest to toward zero.

13 years agoextensions/gggl{,-lies}.c: fix conversions u16 <-> u8
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl{,-lies}.c: fix conversions u16 <-> u8

u16 maximum value is 0x10000 - 1 == (0x100 - 1) (0x100 + 1)
u8 maximum value is 0x100 - 1
thus the direct conversion requires multiplication/division per
0x100+1

division per 0x100+1 is implemented using 1 term of (1 + x)^-1
MacLaurin expansion

(1+x)^-1 == 1 + (-1) x

a * (1 + 1/256)^-1 * (256^-1) == (a - a / 256) / 256

with integer division rounded toward the nearest.

13 years agoextensions/gggl{,-lies}.c: reduce errors of table-based conversions
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl{,-lies}.c: reduce errors of table-based conversions

centering the sample within the range of floats it represents

13 years agoextensions/gggl.c: move table-based conversions in #ifdef USE_TABLES
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
extensions/gggl.c: move table-based conversions in #ifdef USE_TABLES

and the corresponding not using tables in the #else branch

13 years agobabl: don't write anything if dest model lacks a source component
Massimo Valentini [Sat, 14 Jul 2012 15:07:38 +0000 (17:07 +0200)]
babl: don't write anything if dest model lacks a source component

otherwise converting cairo-RGB24 to R'G'B' overwrites the red
component with the PAD.

13 years agotests: add a test for conversions cairo-RGB24 <-> R'G'B' u8
Massimo Valentini [Sat, 14 Jul 2012 15:07:37 +0000 (17:07 +0200)]
tests: add a test for conversions cairo-RGB24 <-> R'G'B' u8

13 years agoindex-static.html.in: correct usage example
Michael Muré [Mon, 25 Jun 2012 10:22:27 +0000 (19:22 +0900)]
index-static.html.in: correct usage example
* babl_fish return a const Babl*
* better naming

13 years agoindex-static.html.in: force utf-8 charset in <head>
Michael Muré [Mon, 25 Jun 2012 10:20:30 +0000 (19:20 +0900)]
index-static.html.in: force utf-8 charset in <head>

13 years agoUse new approximations for gamma conversions
Alexander Larsson [Mon, 18 Jun 2012 10:58:47 +0000 (12:58 +0200)]
Use new approximations for gamma conversions

https://bugzilla.gnome.org/show_bug.cgi?id=678318

13 years agoAdd fast approximations of x^2.4 and x^(1/2.4)
Alexander Larsson [Mon, 18 Jun 2012 10:58:12 +0000 (12:58 +0200)]
Add fast approximations of x^2.4 and x^(1/2.4)

Use a chebyshev polynominal approximation of these to speed up
gamma conversion. Based on the post in:

http://stackoverflow.com/questions/6475373/optimizations-for-pow-with-const-non-integer-exponent/6478839#6478839

https://bugzilla.gnome.org/show_bug.cgi?id=678318

13 years agoupdate .gitignore
Michael Muré [Wed, 23 May 2012 06:21:52 +0000 (15:21 +0900)]
update .gitignore

13 years agosse-fixups: use more portable functions to help compile with clang
Michael Muré [Tue, 22 May 2012 03:48:44 +0000 (12:48 +0900)]
sse-fixups: use more portable functions to help compile with clang

Original patch found here
http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/babl/files/patch-sse-fixups.c?rev=1.1;content-type=text%2Fplain

CVS tags: RELEASE_8_3_0, HEAD

Fix the build with clang.

PR: ports/163518
Submitted by: Jan Beich <jbeich@tormail.net>
Feature safe: yes

13 years agofixup! tests: Avoid rounding error and correct source pixels
Martin Nordholts [Fri, 18 May 2012 11:33:54 +0000 (13:33 +0200)]
fixup! tests: Avoid rounding error and correct source pixels

13 years agotests: Avoid rounding error and correct source pixels
Martin Nordholts [Fri, 18 May 2012 11:31:38 +0000 (13:31 +0200)]
tests: Avoid rounding error and correct source pixels

In float-to-8bit.c and "float -> u8 6", change 0.3 to 0.301 since 0.3
/ 0.6 * 255 = 127.5, so the slightest platform specific rounding error
will give different results for u8 (127 or 128).

Also correct G'a and B'a values in the third pixel to match expected
values, the source values seems to have forgotten about
premultiplication.

13 years agoadd a u15 type that is 16bit only using 15bits
Øyvind Kolås [Wed, 2 May 2012 23:20:29 +0000 (01:20 +0200)]
add a u15 type that is 16bit only using 15bits

13 years agoconfigure: don't set SHREXT to .dylib on darwin
Michael Natterer [Mon, 7 May 2012 20:54:44 +0000 (22:54 +0200)]
configure: don't set SHREXT to .dylib on darwin

libtool creates .so modules anyway (modules not libs!)

13 years agoadd fast paths for conversions to cairo-RGB24
Øyvind Kolås [Fri, 4 May 2012 22:04:59 +0000 (00:04 +0200)]
add fast paths for conversions to cairo-RGB24

13 years agodo not repeat test many many times
Øyvind Kolås [Fri, 4 May 2012 21:34:11 +0000 (23:34 +0200)]
do not repeat test many many times

13 years agoextensions: cairo ARGB format is premultiplied
Massimo Valentini [Fri, 4 May 2012 17:04:30 +0000 (19:04 +0200)]
extensions: cairo ARGB format is premultiplied

13 years agobabl: initialize 'palette' babl-format member
Massimo Valentini [Fri, 4 May 2012 17:04:03 +0000 (19:04 +0200)]
babl: initialize 'palette' babl-format member

otherwise non-palette formats could be mistakenly used as palette

13 years agofix a warning
Simon Budig [Thu, 3 May 2012 11:32:55 +0000 (13:32 +0200)]
fix a warning

13 years agofix cpu-accel test for 64bit
Øyvind Kolås [Wed, 2 May 2012 21:51:10 +0000 (23:51 +0200)]
fix cpu-accel test for 64bit

13 years agoonly enable sse-fixups when not on 64bit
Øyvind Kolås [Wed, 2 May 2012 21:48:54 +0000 (23:48 +0200)]
only enable sse-fixups when not on 64bit

13 years agotests: add more float->8bit tests
Øyvind Kolås [Wed, 2 May 2012 21:10:16 +0000 (23:10 +0200)]
tests: add more float->8bit tests

13 years agotests: split utility function out into common.inc
Øyvind Kolås [Wed, 2 May 2012 21:00:46 +0000 (23:00 +0200)]
tests: split utility function out into common.inc

13 years agodirectly use stdint types in half-float reference code
Øyvind Kolås [Wed, 2 May 2012 00:34:42 +0000 (02:34 +0200)]
directly use stdint types in half-float reference code

13 years agouse stdint types for sized data types
Øyvind Kolås [Wed, 2 May 2012 00:27:19 +0000 (02:27 +0200)]
use stdint types for sized data types

13 years agoalso test >1.0 values when converting from float to u8
Øyvind Kolås [Tue, 1 May 2012 11:40:28 +0000 (13:40 +0200)]
also test >1.0 values when converting from float to u8

13 years agoadd simple test for float->u8 conversion
Simon Budig [Tue, 1 May 2012 11:35:58 +0000 (13:35 +0200)]
add simple test for float->u8 conversion

13 years agoadd some standard u32 based formats
Øyvind Kolås [Tue, 1 May 2012 00:34:18 +0000 (02:34 +0200)]
add some standard u32 based formats

13 years agofurther slight decrease of error in conversion
Øyvind Kolås [Mon, 30 Apr 2012 02:47:45 +0000 (04:47 +0200)]
further slight decrease of error in conversion

13 years agodecrease error of float to 8bit LUT extension
Øyvind Kolås [Sun, 29 Apr 2012 23:04:33 +0000 (01:04 +0200)]
decrease error of float to 8bit LUT extension

13 years agoadd babl_format_get_model
Øyvind Kolås [Wed, 25 Apr 2012 23:17:41 +0000 (01:17 +0200)]
add babl_format_get_model

13 years agoadd some half-float based formats
Øyvind Kolås [Wed, 25 Apr 2012 23:07:00 +0000 (01:07 +0200)]
add some half-float based formats

13 years agoRevert "replace gamma functions with #defines"
Øyvind Kolås [Mon, 23 Apr 2012 23:26:30 +0000 (01:26 +0200)]
Revert "replace gamma functions with #defines"

This reverts commit fd11d181d043e56168572c08f932f6d0379615e3.

13 years agoRevert "guard gamma defines' argument in extra ()s"
Øyvind Kolås [Mon, 23 Apr 2012 23:20:50 +0000 (01:20 +0200)]
Revert "guard gamma defines' argument in extra ()s"

This reverts commit 18b4f45d258c75ea4e5c30b7f9a792aded31c196.

13 years agoRevert "Revert "allocate temporary buffers for fish conversion on the stack""
Øyvind Kolås [Mon, 23 Apr 2012 23:20:39 +0000 (01:20 +0200)]
Revert "Revert "allocate temporary buffers for fish conversion on the stack""

This reverts commit 70e984d454618a219a5f472915e004da623726a6.

13 years agoguard gamma defines' argument in extra ()s
Øyvind Kolås [Mon, 23 Apr 2012 22:59:23 +0000 (00:59 +0200)]
guard gamma defines' argument in extra ()s

13 years agoRevert "allocate temporary buffers for fish conversion on the stack"
Øyvind Kolås [Mon, 23 Apr 2012 15:58:15 +0000 (17:58 +0200)]
Revert "allocate temporary buffers for fish conversion on the stack"

This reverts commit 290ce9308f7b18f15398707e2d948f8745dd0be0.

I don't think it should, but it seems like it breaks expected behavior.

13 years agoreplace gamma functions with #defines
Øyvind Kolås [Sun, 22 Apr 2012 23:53:27 +0000 (01:53 +0200)]
replace gamma functions with #defines

Causes some slight speedup across babl on less agressive optimization
levels.

13 years agoallocate temporary buffers for fish conversion on the stack
Øyvind Kolås [Sun, 22 Apr 2012 23:07:14 +0000 (01:07 +0200)]
allocate temporary buffers for fish conversion on the stack

This avoids calling malloc/free for fishes that consists of multiple steps.

13 years agobase: added IEEE 754-2008 half precision float
Øyvind Kolås [Sat, 21 Apr 2012 23:31:05 +0000 (01:31 +0200)]
base: added IEEE 754-2008 half precision float

Using BSD licensed code that means applications using babl should display the
appropriate copyright header - or this code needs to be reimplemented so that
babl can retain the functionality without that additional requirement.

13 years agotests: added test to extract a component
Øyvind Kolås [Tue, 10 Apr 2012 22:05:28 +0000 (00:05 +0200)]
tests: added test to extract a component

13 years agogobject-introspection: fix build of the .gir and .typelib files.
Dominique Leuenberger [Tue, 10 Jan 2012 16:32:50 +0000 (17:32 +0100)]
gobject-introspection: fix build of the .gir and .typelib files.

13 years agobabl/babl-palette.c: remove include of <values.h>
Øyvind Kolås [Thu, 5 Apr 2012 14:39:15 +0000 (16:39 +0200)]
babl/babl-palette.c: remove include of <values.h>

No longer needed when limits.h is included.